<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
          <div class="nav-tabs-custom" style="box-shadow:0 0 0 0; margin:5px;">
            <ul class="nav nav-tabs">
            <li class="active"><a href="#basic" data-toggle="tab">基础设置</a></li>
            <li><a href="#play" data-toggle="tab">播放器代码</a></li>                 
            </ul> 
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" name="play_id" value="{$info['play_id']|default=''}">
       <div class="box-body">
          <div class="row">
            <div class="col-md-12">
           <div class="tab-content tab-fade fade active in " id="basic">            
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">播放器名称：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="play_title" value="{$info['play_title']|default=''}" autocomplete="off"  required="required" placeholder="播放器中文名称必填">
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">播放器标识：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="play_name" value="{$info.play_name|default=''}"  autocomplete="off"  required="required" pattern="[a-zA-Z0-9]{1,10}" placeholder="唯一必须为数字字母,添加后不能修改">
              </div>              
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">播放器排序：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control w30" name="play_oid" value="{$info.play_oid|default=''}" autocomplete="false" placeholder="越小越前面" style="text-align:center;">
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">版&nbsp;权&nbsp;跳&nbsp;转&nbsp;：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control w30" name="play_copyright" value="{$info.play_copyright|default=''}" autocomplete="false"   placeholder="跳转时间" style="text-align:center;" data-tip="填写数字为开启版权跳转时间秒">
              </div>              
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">播&nbsp;放&nbsp;方&nbsp;式&nbsp;：</span>
                </div>
                <!-- /btn-group -->
                <select name="play_cloud" class="form-control select2" style="width:100%">
                    <option value="0">官方云播</option>
                    <option value="1" {eq name="info.play_cloud" value="1" }selected{/eq}>本地JS</option> 
                </select>
              </div>
                <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">解&nbsp;析&nbsp;地&nbsp;址&nbsp;：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="play_apiurl" value="{$info.play_apiurl|default=''}"  autocomplete="off"  placeholder="填写解析地址后开启解析" data-tip="播放器变量参数:播放器名{playname}">
              </div> 
                <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">安&nbsp;装&nbsp;地&nbsp;址&nbsp;：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="play_downurl" value="{$info.play_downurl|default=''}"  autocomplete="off" data-tip="留空默认:{$public}/player/setup/播放器标识.html">
              </div>
                <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">加&nbsp;密&nbsp;密&nbsp;匙&nbsp;：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="play_key" value="{$info.play_key|default=''}"  autocomplete="off" data-tip="填写加密密匙,资源地址将加密,配合解析来进行解密,需要解密方法联系管理">
              </div> 
                <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">密&nbsp;匙&nbsp;时&nbsp;间&nbsp;：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="play_keytime" value="{$info.play_keytime|default=''}"  autocomplete="off" data-tip="建议时间设置稍长，避免解密地址服务器和程序服务器时间差导致失效，设置为0长期有效">
              </div> 
                                                                        
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">是&nbsp;否&nbsp;采&nbsp;集&nbsp;：</span>
                </div>
                <!-- /btn-group -->
                <select name="play_status" class="form-control select2" style="width:100%">
                        <option value="1">启用</option>
                        <option value="0" {eq name="info.play_status" value="0" }selected{/eq}>禁用</option>
                </select>
              </div> 
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">是&nbsp;否&nbsp;显&nbsp;示&nbsp;：</span>
                </div>
                <!-- /btn-group -->
                <select name="play_display" class="form-control select2" style="width:100%">
                        <option value="1">显示</option>
                        <option value="0" {eq name="info.play_display" value="0" }selected{/eq}>隐藏</option>
                </select>
              </div>                                            
<div class="callout callout-title">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                {notempty name="nav.remark"}
                <p>{$nav.remark}</p>
                {/notempty}
</div>                           
            </div>  
            <!-- /.basic -->
           <div class="tab-content tab-fade fade " id="play">
             {empty name="info.play_id"}
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">播放器模版：</span>
                </div>
                <!-- /btn-group -->
                <select name="play_js" class="form-control select2" style="width:100%">
                    <option value="">不使用</option>
                    <option value="jiexi">解析模版</option>
                    <option value="ckplayer">Ckpleyer</option> 
                    <option value="dplayer">Dpleyer</option>
                    <option value="iframe">iframe外链</option>
                    <option value="pan">网盘连接</option>
                    <option value="swf">SWF</option>
                    <option value="mp4">HTML5-MP4</option>
                </select>
              </div>     
               {/empty} 
                <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default">播放器文件：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" value="{$Think.TPL_PATH}player/{$info.play_name|default='标识'}.js" disabled>
              </div>   
             <div class="input-group margin" id="play_code">
                <div class="input-group-btn">
                <span class="btn btn-default" style="position:absolute;top:0px;">播放器代码：</span>
                <span class="form-txt-hide-1" style="margin:0 4px;"></span>
                </div>
                <!-- /btn-group -->
               <textarea name="play_code" class="form-control" style="height:400px">{$info.play_code|default=''}</textarea>
              </div>  
              {empty name="info.play_id"}
               <div class="callout callout-title">
               <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <p>官方默认提供了几种常用的播放器JS模版-下面为说明</p>
                <p>解析模版：如果你添加的这个播放器需要使用解析那么建议选择这个模版，<br>Ckplayer播放器:使用这个JS可以播放M3U8,MP4等资源不需要解析<br>
Dpleyer播放器:可以播放M3U8和MP4等资源不需要解析<br>iframe外链:如果你的资源可以直接在浏览器打开进行播放，并且为只是播放页面的话选择<br>
网盘连接：播放窗口提示点击连接进入资源下载<br>SWF:播放SWF资源,MP4:播放MP4视频，必须为HTML5浏览器</p>
               </div>                            
                {/empty}                                              
            </div> 
            <!-- /.seo -->
            

                    
          </div>
          </div>
          <!-- /.row -->
          
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</div>
<!-- /.box-body --> 
</form>
</div>
<!-- /.nav-tabs-custom -->    
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.play();
});	
</script>
</body>
</html>
